import { useMount, useFullscreen } from 'ahooks'
import { useState } from 'react'

const Demo8 = () => {
  const [count, setCount] = useState(0)
  useMount(() => {
    console.log('demo8挂载')
  })
  return (
    <>
      <h3>aHooks库的使用</h3>
      <button
        onClick={() => {
          setCount(() => {
            return count + 1
          })
        }}
      >
        {count}
      </button>
    </>
  )
}

export default Demo8
